package com.woniuxy.mesboot.mapper;

import com.woniuxy.mesboot.dto.TicketsDetailsDTO;
import com.woniuxy.mesboot.dto.WorkTicketsDTO;
import com.woniuxy.mesboot.entity.MesWorktickets;
import com.woniuxy.mesboot.vo.TicketDetailsVO;
import com.woniuxy.mesboot.vo.WorkTicketVO;

import java.util.List;

/**
* @author 俗不可耐
* @description 针对表【mes_worktickets(工单表)】的数据库操作Mapper
* @createDate 2023-05-24 10:46:08
* @Entity com.woniuxy.mesboot.entity.MesWorktickets
*/
public interface MesWorkticketsMapper {
    int selectIdByNo(String ticketNo);
    List<TicketDetailsVO> selectAllDetails(Integer id);

    List<WorkTicketVO> selectAll(WorkTicketsDTO tickets);

    int deleteByPrimary(Integer ticketId);

    int insert(MesWorktickets record);

    int insertSelective(TicketsDetailsDTO detailsDTO);

    MesWorktickets selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MesWorktickets record);

    int updateByPrimaryKey(MesWorktickets record);

}
